<?php  
//connection information
include("funciones/setup.php");
conecta();
//	$query = "SELECT * FROM productos WHERE nombre_pro LIKE '$queryString%' LIMIT 10";
	$query="SELECT * FROM factura ";
	$query.=" WHERE   n_factura LIKE '%$queryString%' LIMIT 10";

	$resultado=mysql_query($query);
        if($resultado) {
            // While there are results loop through them - fetching an Object (i like PHP5 btw!).
            while ($result = mysql_fetch_array($resultado)) {
                // Format the results, im using
	
                // The onClick function fills the textbox with the result.
                ?>
	              <li onclick="fill(<?php echo $result['n_factura']; ?>,<?php echo $result['id_factura'];?>)"><?php echo $result['n_factura']; ?></li>
				<?php
            }
		}
?>  